const Home = (props) => (<div>{props.xxx}</div>);

Home.getInitialProps = async function (context) {
  console.log('Home.getInitialProps');
  // console.log('context:', context);
  /* 默认context参数包含以下
    {
      req: {}
      ,res: {}
      ,pathname: '/'
      ,query: {}
      ,asPath: '/index'
      ,AppTree: [Function: AppTree]
    }
  */
  return {
    someprops:{
      a:1,
      b:2
    }
  }
};

export default Home;

